import type { ResponseStruct } from '#/global'

/**
* 获取RdAlarmBroadcastRecord分页列表
* @returns
*/
export function page(data: any): Promise<ResponseStruct<any>> {
    return useHttp().get('alarm/rdAlarmBroadcastRecord/list', { params: data })
}

/**
* 添加RdAlarmBroadcastRecord
* @returns
*/
export function create(data: any): Promise<ResponseStruct<any>> {
  return useHttp().post('alarm/rdAlarmBroadcastRecord', data)
}
/**
* 更新RdAlarmBroadcastRecord数据
* @returns
*/
export function save(id: number, data: any): Promise<ResponseStruct<any>> {
    return useHttp().put(`alarm/rdAlarmBroadcastRecord/${id}`, data)
}

/**
* 将RdAlarmBroadcastRecord删除，有软删除则移动到回收站
* @returns
*/
export function deleteByIds(ids: number[]): Promise<ResponseStruct<null>> {
  return useHttp().delete('alarm/rdAlarmBroadcastRecord', { data: ids })
}